using System;
using System.Xml.Serialization;

namespace com.exceptionalsoftware.spacetime.KML
{
	[Serializable()]
    [XmlType(TypeName = "PointType")]
	public class Point : GeometryElementsGeometry
	{
        private Coordinate coords;

        public Point()
		{
            this.coords = new Coordinate();
		}

        public Point(Coordinate c)
        {
            this.coords = c;
        }

        public Point(string coord)
        {
            this.coords = new Coordinate(coord);
        }

        [XmlElement(ElementName = "coordinates", Type = typeof(Coordinate))]
        public Coordinate Coordinate
        {
            get { return this.coords; }
            set { this.coords = value; }
        }
    }
}